package com.tang.logger.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author Tang
 * @classname LogPusherConfiguration
 * @description [  ]
 * @date 2021/7/25 11:20
 */
@Configuration
@ConditionalOnProperty(prefix = LogPusherProperties.PREFIX,havingValue = "true",matchIfMissing = true)
public class LogPusherConfiguration {

    @ConfigurationProperties(prefix = "log.pusher")
    public LogPusherProperties logPusherProperties() {
        return new LogPusherProperties();
    }

}